#!/usr/bin/env python
# coding: utf-8

'''
Created on 2014年7月18日

@author: Administrator
'''
import urllib2
import httplib
from datetime import datetime, date, timedelta
import time
import random
from urllib2 import urlopen

class T():
    name = ''
    pass


if __name__ == "__main__":
    
#     enable_proxy = True
#     proxy_handler = urllib2.ProxyHandler({"http" : 'http://192.168.0.101:3128'})
#     null_proxy_handler = urllib2.ProxyHandler({})
#     if enable_proxy:
#         opener = urllib2.build_opener(proxy_handler)
#     else:
#         opener = urllib2.build_opener(null_proxy_handler)
#     urllib2.install_opener(opener)
#     #设置代理end   
    header = {'Accept-Charset':'GBK,utf-8;q=0.7,*;q=0.3', 'User-Agent' : 'Mozilla/5.0 (Linux; U; Android 4.2.2; zh-cn; );/;DIwyOoUTSAjQYVszSIAYgD/m7RcV2Jy5f6YJlvrzx5DiSBNBpwQ5WvNFFJY7fJVJXn8aCZb9+ghT\
C6zylepr/MgAK+SIXDltZd0aNaRfKFpIOsa2FD5+5tymP3cT5oiAS3BByybnfdf7xyJeqcM0HLVd\
IY1tSCvw+OE7Y+th1pgjDmT6Ru10xF3YGTyAVKNoO2e3TPVOHPeRWAvqrQlr+dr9S81ceAJ1fU41\
b1yOJ5VB5bNTtYsyycSU2AvrasKaLzoqrV11jmOAjIj+31D10lvNnii3rdyOMpEbUUDoeNaoWWTh\
j9lxyCiRpxsBzQTSxymyJyZp7buD4LRS04W29uiXdzKpBFx2', 'Code-Content':'AAAAAAAAAAAA'}
#     #Debug Log star
#     httpHandler = urllib2.HTTPHandler(debuglevel=1)
#     httpsHandler = urllib2.HTTPSHandler(debuglevel=1)
#     opener = urllib2.build_opener(httpHandler, httpsHandler)
#     urllib2.install_opener(opener)
    # Debug Log end
    request = urllib2.Request("http://192.168.10.172/topic/list/0/1?u=sSwy2qtFf/qu234fknHx0A==&s=1", headers=header)
    res = urlopen(request)
    html = res.read()
    
    res.close()
    print html

    
    
    
    
    
